﻿using Ldt.SettingCenter.Core;
using LdtCommonFreeSql;
using LdtCommonLibraryHttp;
using LdtCommonUtil;
using Microsoft.AspNetCore.Mvc;
using ManageModel.Bll;
using System;
using System.Text;
using System.Threading.Tasks;

namespace ManageModel.Webapi.Controllers
{
    /// <summary>
    /// Class RexUniNluModelController.
    /// Implements the <see cref="Microsoft.AspNetCore.Mvc.ControllerBase" />
    /// </summary>
    /// <seealso cref="Microsoft.AspNetCore.Mvc.ControllerBase" />
    [ApiController]
    [Route("api")]
    public class MainController : ControllerBase
    {
        private readonly ServiceBll serviceBll;
        /// <summary>
        /// Initializes a new instance of the <see cref="MainController"/> class.
        /// </summary>
        /// <param name="serviceBll"></param>
        public MainController(ServiceBll serviceBll)
        {
            this.serviceBll = serviceBll;
        }
        /// <summary>
        /// 创建学习数据
        /// </summary>
        /// <returns>Task&lt;ActionResult&gt;.</returns>
        [HttpGet("CreateTrainData")]
        public async Task<ActionResult> CreateTrainData()
        {
            await serviceBll.GetTrainDatas();
            return Ok("");
        }
    }
}
